<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<title>
			填写订单信息
		</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<script src="{{__PUBLIC__}}/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="{{__PUBLIC__}}/bootstrap/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/bootstrap/css/bootstrap.css"/>
		<script src="{{__PUBLIC__}}/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/hdjs/hdjs.css"/>
		<script src="{{__PUBLIC__}}/js/common.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=WcqLYXBH2tHLhYNfPNpZCD4s"></script>
		<script type="text/javascript" src="public/js/map.js"></script>
		<script type="text/javascript">var root = "{{__ROOT__}}";</script>
	</head>
	<body>
		<!--<a href="javascript:history.go(-1);">向上一页</a>-->
		<nav class="navbar navbar-default navbar-fixed-top" style="background: lightskyblue;">
			<div class="container-fluid container">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar">
						</span>
						<span class="icon-bar">
						</span>
						<span class="icon-bar">
						</span>
					</button>
					<a class="navbar-brand" href="#" style="display: inline-block; padding: 0 0;">
						<img src="{{__VIEW__}}/Index/images/yueyanglou.jpg" style="width: 56px;height: 50px;" class="img-responsive" alt="Responsive image">
					</a>
				</div>
				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav navbar-right">
						<li>
							<a href="#">
								会员注册
							</a>
						</li>
						<li>
							<a href="#">
								会员登录
							</a>
						</li>
						<form class="navbar-form navbar-left" role="search">
							<div class="form-group">
								<input type="text" class="form-control" placeholder="菜品">
							</div>
							<button type="submit" class="btn btn-default">
								选择菜品
							</button>
						</form>
					</ul>
				</div><!-- /.navbar-collapse -->
			</div><!-- /.container-fluid -->
		</nav>
		<nav class="navbar navbar-default" style="margin-top: 52px;">
			<div class="container" style=";padding: 0 0;">
				<form onsubmit="" style="width: 400px;" id="form">
					
					<table class="table" style="width: 400px;">
						<tr>
							<th>
								尊称:
							</th>
							<td>
								<input type="text" name="name" />
							</td>
						</tr>
						<tr>
							<th>
								电话:
							</th>
							<td>
								<input type="tel" name="tel" />
							</td>
						</tr>
						<tr>
							<th>
								地址:
							</th>
							<td>
								<input type="text" name="address" style="width: 200px;" />
								<button onclick="get()" type="button">
									获取地址
								</button>
								<script>function get() {
									getAddress(function(address) {
										$("[name=address]").val(address);
									})
								}</script>
							</td>
						</tr>
						<tr>
							<td>
								<label for="">备注:</label>
							</td>
							<td>
								<textarea style="width: 200px; height:100px" name="description" rows="" cols=""></textarea>								

							</td>
						</tr>
					</table>
					
					
				</form>
				
			</div>
		</nav>
<input form="form" id="btn" type="submit" style="display: block;width:150px;margin: 30px auto;" class="btn btn-success" value="结算订单"/>
<script type="text/javascript">
		ajaxPostBook("{{U('order')}}",'form','btn',"",function(){
			localStorage.clear();
			if(confirm('订餐成功,是否继续订餐...?'))
			{
				
				location.href = "{{U('lists',array('dpid'=>$_SESSION['dpid']))}}";
				
			}
			else{
				location.href="{{U('index',array('wxid'=>$_SESSION['wxid']))}}";
			}
		});
	</script>
	</body>
</html>
